<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/base/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>${systemOption.systemTitle}</title>
    <%@ include file="/base/head.jsp"%>
    <script type="text/javascript" charset="UTF-8">
    
    
      //分页查询
	function doQuery(){
	  	var queryParams=$('#logBookList').datagrid('options').queryParams;
	  	queryParams.nameSch=$('#nameSch').val(); 	
	 	queryParams.markSch=$('#markSch').val();
	  	queryParams.fromDateSch=$('#fromDateSch').datebox('getValue');
	  	queryParams.toDateSch=$('#toDateSch').datebox('getValue');
	  	//重置当前页数为1
	  	resetDG('#logBookList');

	} 
	function formatRQ(val,row){
		return val.replace('T',' ');
	}
	
	function formatMethod(val,row){
		if(val == 1){
		return "网页端";
		}else{
		return "移动端";
		}
	
	}
    </script>
  </head>
  
  <body>
        
<!-- 主窗口 -->  	 
    <table id="logBookList" class="easyui-datagrid" data-options="fit:true,
    								title:'系统日志',
    								iconCls:'icon-page',
    								rownumbers:true,
									striped:true,
									singleSelect:true,
									fitColumns:true,
									toolbar:'#tb',
									pagination:true,
									pageSize:20,
									pageList:[20,30,50,100],
									url:'${ctx}/json/listLogBook.action'">
		<thead>
			<tr>
				<th data-options="field:'name',align:'left',halign:'center'" width="200"><strong>姓名</strong></th>
				<th data-options="field:'ip',align:'left',halign:'center'" width="150"><strong>地址IP</strong></th>
				<th data-options="field:'mark',align:'center'" width="150"><strong>操作</strong></th>
				<th data-options="field:'description',align:'left',halign:'center'" width="200" ><strong>描述</strong></th>
				<th data-options="field:'ldate',align:'center'," width="100" ><strong>时间</strong></th>
				<th data-options="field:'method',align:'center',formatter:formatMethod" width="100" ><strong>方式</strong></th>
			</tr>
		</thead>
		
	</table>
<!-- Datagrid工具栏 -->
<div id="tb">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
	   <td style="padding:2px">
			姓名：
			<input id="nameSch" class="easyui-textbox"> 
			&nbsp;&nbsp;操作：<input id="markSch" class="easyui-textbox" > 
			&nbsp;&nbsp;时间：<input id="fromDateSch" class="easyui-datebox" />至<input id="toDateSch" class="easyui-datebox"/>
			&nbsp;&nbsp;<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" 
			onclick="doQuery()">查询</a>
		</td>
	</tr>
	</table>
</div>    
  </body>
</html>
